Skip to content

chore(example): bump IRL contract_details schema version to 4 - #1522

Merged
gabrielseco merged 1 commit into
mainfrom
chore/irl-contract-details-v4
Oct 13, 2026
Merged

gabrielseco merged 1 commit into
mainfrom
chore/irl-contract-details-v4

Conversation

@gabrielseco

@gabrielseco gabrielseco commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The example app now uses Ireland's latest contract details form (v4). Ireland also gets its own schema changelog.

Why

  • IRL was still pinned to v1 while the backend is on v4.
  • v2 moves the schema to the jsf v1 engine, which turns on two salary validations that did nothing before. Pinning the example to latest makes us run the form partners will get when they upgrade.

What changed

Toggle details
  • jsonSchemaVersions.ts: IRL contract_details 1 → 4.
  • schemaVersions.ts: unchanged, because it already lists IRL v1–v4.
  • Docs: new IRL.md covering v2–v4, plus IRL in the README's migration list and version matrix. Each entry is based on tiger's version_changelog:
    • v2: high-salary reserve messaging (display-only salary_overview), jsf v1 engine. Part-time salary below the hourly-derived minimum and a missing annual gross salary are now rejected, so payloads relying on the old behavior can fail validation.
    • v3: extreme-salary acknowledgement
    • v4: seniority block on fixed-term contracts
  • No public API change.

Screenshots

N/A

Related Resources

  • Tiger commits that cut each version: 18694d40 (v2, reserve messaging), e59481f5 (v2 salary minimum enforced under JSF v1), 3f240067 (v3, extreme salary), 8fb85131 (v4, seniority block)

Testing

  • Tested against the example/ app in a browser
  • npm run schema-canary -- --country=IRL --versions=pinned,latest against sandbox: build and submit pass on pinned (v4) and latest. The v1 baseline was not run separately.
  • Feature flag: eor_seniority_block, eor_seniority_block_v2_ftc (v4 seniority block); extreme-salary acknowledgement (v3)

🤖 Generated with Claude Code


Note

Low Risk
Documentation and example-app schema pin only; no runtime library or API surface changes.

Overview
Aligns the example onboarding app with Ireland’s current contract details schema by pinning IRL from v1 → v4 in jsonSchemaVersions.ts, so the demo exercises the same form and validations partners see when they upgrade.

Adds Ireland-specific migration docs (IRL.md) and lists IRL v4 in the contract-details country README (link + version matrix). The changelog calls out what upgrades imply: v2 (jsf v1 engine, stricter salary rules, display-only high-salary messaging), v3 (extreme-salary acknowledgement), and v4 (fixed-term blocked when seniority date is recognized, flag-gated). No public API changes—documentation and example configuration only.

Reviewed by Cursor Bugbot for commit 3c1cbc3. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Deploy preview for adp-cost-calculator ready!

Project:adp-cost-calculator
Status: ✅  Deploy successful!
Preview URL:https://adp-cost-calculator-9tc4pxxiy-remotecom.vercel.app
Latest Commit:3c1cbc3

Deployed with vercel-action

@github-actions

Copy link
Copy Markdown
Contributor

Deploy preview for remote-flows ready!

Project:remote-flows
Status: ✅  Deploy successful!
Preview URL:https://remote-flows-c9xpglcxa-remotecom.vercel.app
Latest Commit:3c1cbc3

Deployed with vercel-action

@github-actions

Copy link
Copy Markdown
Contributor

📊 Coverage Report

⚪ Coverage unchanged

Metric Current Previous Change Status
Lines 89.58% 89.58% 0% ⚪
Statements 89.45% 89.45% 0% ⚪
Functions 88.47% 88.47% 0% ⚪
Branches 81.20% 81.20% 0% ⚪

Detailed Breakdown

Lines Coverage
  • Covered: 5389 / 6016
  • Coverage: 89.58%
  • Change: 0% (0 lines)
Statements Coverage
  • Covered: 5454 / 6097
  • Coverage: 89.45%
  • Change: 0% (0 statements)
Functions Coverage
  • Covered: 1427 / 1613
  • Coverage: 88.47%
  • Change: 0% (0 functions)
Branches Coverage
  • Covered: 3343 / 4117
  • Coverage: 81.20%
  • Change: 0% (0 branches)

✅ Coverage check passed

@gabrielseco
gabrielseco merged commit 202010e into main Oct 13, 2026
15 checks passed
@gabrielseco
gabrielseco deleted the chore/irl-contract-details-v4 branch October 13, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants